

const express = require('express')
//引入用户路由器
const userRouter = require('./user')
const productRouter = require('./product')

const app = express();

app.listen(8888, (req, res) => {
  console.log('8888ok')
})

//挂载路由，添加前缀
app.use('/user', userRouter)
app.use('/product',productRouter)









